package com.example.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.blog.pojo.WebSite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface WebSiteMapper extends BaseMapper<WebSite> {
    @Select("select web_title from web_site where web_url=#{webUrl}")
    WebSite getTitleByUrl(@Param("webUrl") String webUrl);
}
